package SGUI

import (
	. "SGEngine2"
	"dom4g"
)

type Canvas struct {
	WidgetInfo
}

func (this *Canvas) GetWidgetInfo() *WidgetInfo {
	return &this.WidgetInfo
}
func (this *Canvas) OnUpdate() {

}
func (this *Canvas) OnLoad() {
	//child := this.GetChild()
}

func GenCanvasByXML(elem *dom4g.Element, node *Node, tw *TopWidget, p IWidget) IWidget {
	newCanvas := &Canvas{}
	newCanvas.Node = node
	newCanvas.Top = tw
	parseNodeAttrs(elem, newCanvas, p)
	return newCanvas
}
